﻿<Window xmlns:WPFToolkitPrimitives="clr-namespace:Microsoft.Windows.Controls.Primitives;assembly=WPFToolkit"  
        xmlns:WPFToolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:SPC="clr-namespace:SharePointCommander"
        xmlns:System="clr-namespace:System;assembly=mscorlib" x:Class="SharePointCommander.MainWindow"
        Title="MainWindow" Height="600" Width="800" Loaded="Window_Loaded">
    <Grid>
        <Grid.Resources>
        </Grid.Resources>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*" />
            <ColumnDefinition Width="50*" />
        </Grid.ColumnDefinitions>

        <Menu Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
            <MenuItem Header="File">
                <MenuItem Header="Connect to another farm ..." />
            </MenuItem>
            <MenuItem Header="Tools"></MenuItem>
            <MenuItem Header="Help">
                <MenuItem x:Name="MenuItemAbout" Header="About" Click="MenuItemAbout_Click" />
            </MenuItem>
        </Menu>

        <DockPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
            <ToolBarTray>
                <ToolBar Band="1" BandIndex="1">
                    <Button x:Name="btnSave" Content="Update" Click="btnSave_Click" />
                    <Button x:Name="btnRefresh" Content="Refresh" Click="btnRefresh_Click" />
                </ToolBar>
            </ToolBarTray>
        </DockPanel>

        <GridSplitter HorizontalAlignment="Left" x:Name="gridSplitter1" Width="3" ResizeDirection="Columns" Grid.Row="2" Grid.Column="1" />

        <SPC:SCTreeView x:Name="treeView1" Grid.Row="2" Grid.Column="0" />

        <SPC:SCPropertySheet x:Name="listView1" Grid.Row="2" Grid.Column="1" />

        <StatusBar Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
            <StatusBarItem Content="" />
        </StatusBar>
    </Grid>
</Window>
